import React,{ Suspense } from "react";
import { Spin } from "antd";
function LazyLoad(Cmp:React.LazyExoticComponent<()=>JSX.Element>){
   return <Suspense fallback={<Spin/>}>
        <Cmp/>
   </Suspense> 
}
export default LazyLoad